from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

app_name = 'deal'

router = DefaultRouter()
router.register(r'companies', views.CompanyViewSet)
router.register(r'projects', views.ProjectViewSet)
router.register(r'tender-announcements', views.TenderAnnouncementViewSet)
router.register(r'bid-opening-records', views.BidOpeningRecordViewSet)
router.register(r'bid-opening-details', views.BidOpeningDetailViewSet)
router.register(r'bid-evaluation-results', views.BidEvaluationResultViewSet)
router.register(r'bid-candidates', views.BidCandidateViewSet)
router.register(r'winning-result-announcements', views.WinningResultAnnouncementViewSet)
router.register(r'transaction-results', views.TransactionResultViewSet)
router.register(r'tender-clarifications', views.TenderClarificationViewSet)
router.register(r'project-versions', views.ProjectVersionViewSet)
router.register(r'sub-entity-versions', views.SubEntityVersionViewSet)
router.register(r'version-relationships', views.VersionRelationshipViewSet)

urlpatterns = [
    path('api/v1/', include(router.urls)),
]